package com.eclipse.org.snms.serializer.loadStickyNotes;
import com.eclipse.org.snms.serializer.stickyNoteList.*;


import java.util.ArrayList;
/**
 * 
 * @author toufic
 *
 */
public class SerializerConcreteSubject implements SerializerSubject{
	ArrayList<SerializerObserver> observers = new ArrayList<SerializerObserver>();
	StickyNoteList uniquaInstance = StickyNoteList.getUniqueInstance();
	public void notifyObservers(){
		for(SerializerObserver o:observers)
		{
			o.update(uniquaInstance.getStickyNote());
		}
	}
	public void subscribe(SerializerObserver serializaruibObserver){
		observers.add(serializaruibObserver);
	}
	public void unsubscribe(SerializerObserver serializaruibObserver){
		observers.remove(serializaruibObserver);
	}
}
